package com.inspur.springcloudgateway.controller;

import com.inspur.springcloudgateway.service.EchoFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class EchoController {

    @Autowired
    private EchoFeignService echoFeignService;

    @RequestMapping("/hello/{str}")
    public String echo(@PathVariable("str")String str){
        return echoFeignService.hello(str);
    }
}
